/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gabanet;

/**
 *
 * @author Libra
 */
public class NeuGeo {
    int x;
    int y;
    
    void set(int inputX, int inputY){
        x=inputX;
        y=inputY;
    }
    
    int distanceFrom(Neurons neuronY){
        int xx=neuronY.Geo.getX();
        int yy=neuronY.Geo.getY();
        int dist=(int)Math.round(Math.sqrt((x-xx)*(x-xx)+(y-yy)*(y-yy)));
        return dist;
    }
    
    int getX(){
        return x;
    }
    int getY(){
        return y;
    }
    
    void setX(int setx) {
        x=setx;
    }
    
    void setY(int sety) {
        y=sety;
    }
    
    void setRandom() {
        //TODO set Random XY;
    }
    
    void setXY(int xx, int yy) {
        x=xx;
        y=yy;
    }
    
}
